package edu.chinasoft.domian;

import org.apache.ibatis.type.Alias;

import javax.management.relation.Role;
import java.io.Serializable;
import java.util.List;
@Alias( value = "user")
public
class User implements Serializable {
    private int userId;
    private String userName;
    private String userPassword;
    private String userFlag;
    private String userDesc;
    //具体业务需求来决定
    private
    List<Role> roleList;

    public
    User() {
    }

    public
    User(int userId, String userName, String userPassword, String userFlag, String userDesc, List <Role> roleList) {
        this.userId = userId;
        this.userName = userName;
        this.userPassword = userPassword;
        this.userFlag = userFlag;
        this.userDesc = userDesc;
        this.roleList = roleList;
    }

    public
    int getUserId() {
        return userId;
    }

    public
    void setUserId(int userId) {
        this.userId = userId;
    }

    public
    String getUserName() {
        return userName;
    }

    public
    void setUserName(String userName) {
        this.userName = userName;
    }

    public
    String getUserPassword() {
        return userPassword;
    }

    public
    void setUserPassword(String userPassword) {
        this.userPassword = userPassword;
    }

    public
    String getUserFlag() {
        return userFlag;
    }

    public
    void setUserFlag(String userFlag) {
        this.userFlag = userFlag;
    }

    public
    String getUserDesc() {
        return userDesc;
    }

    public
    void setUserDesc(String userDesc) {
        this.userDesc = userDesc;
    }

    public
    List <Role> getRoleList() {
        return roleList;
    }

    public
    void setRoleList(List <Role> roleList) {
        this.roleList = roleList;
    }

    @Override
    public
    String toString() {
        return "User{" +
                "userId=" + userId +
                ", userName='" + userName + '\'' +
                ", userPassword='" + userPassword + '\'' +
                ", userFlag='" + userFlag + '\'' +
                ", userDesc='" + userDesc + '\'' +
                ", roleList=" + roleList +
                '}';
    }
}
